package com.lujieni.domain.po;

import com.lujieni.mybatis.entity.BasicEntity;

import javax.persistence.Table;

@Table(name = "t_worker")
public class WorkerPO extends BasicEntity {

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 工作状态 null:未知 1:积极 2:消极
     */
    private int status;

    private Integer hobbyId;

    public Integer getHobbyId() {
        return hobbyId;
    }

    public void setHobbyId(Integer hobbyId) {
        this.hobbyId = hobbyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "WorkerPO{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", status=" + status +
                ", hobbyId=" + hobbyId +
                '}';
    }
}

